﻿using System;
using System.Collections.Generic;
using System.Linq;
using InvestmentIntelligence.DbModel.Models;

namespace InvestmentIntelligence.Data.Repository
{
    public interface IEconomicSectorUpdatableRepository : IEconomicSectorRepository, IUpdatableRepository<EconomicSector>
    {
        /// <summary>
        ///     Add new EconomicSector
        /// </summary>
        /// <param name="item"></param>
        int Add(EconomicSector item);

        /// <summary>
        /// Adds new EconomicSector to DB
        /// </summary>
        /// <param name="sectorId"></param>
        /// <param name="description"></param>
        /// <param name="parentId"></param>
        /// <returns></returns>
        int Add(int sectorId, string description, int? parentId);
    }

    public interface IEconomicSectorRepository
    {
        List<EconomicSector> GetList();

        /// <summary>
        ///     Return currency By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        EconomicSector Get(int id);
    }
}